package cn.wolfcode.shop.service;

import cn.wolfcode.shop.domain.SeckillGood;
import cn.wolfcode.shop.vo.GoodVo;

import javax.jms.JMSException;
import java.util.List;

public interface ISeckillGoodService {
    List<GoodVo> selectAll();

    GoodVo get(Long goodId);

    int reduceStockCount(Long goodId);

    List<GoodVo> getByCache();

    GoodVo getCacheByGoodId(Long goodId);

    void syncStock(Long goodId) throws JMSException;
}
